package com.sangeng.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sangeng.domain.ResponseResult;
import com.sangeng.domain.entity.Article;
import com.sangeng.domain.vo.ArticleDetailVo;
import com.sangeng.domain.vo.HotArticleVo;
import com.sangeng.domain.vo.PageVo;

import java.util.List;

public interface ArticleService extends IService<Article> {
    ResponseResult<List<HotArticleVo>> hotArticleList();

    ResponseResult<PageVo> articleList(Integer pageNum, Integer pageSize, Long categoryId);

    ResponseResult<ArticleDetailVo> getArticleDetail(Long id);

    ResponseResult<String> updateViewCount(Long id);
}